import request from '@/utils/request'

// 查询直充图片地址列表
export function listDirectImage(query) {
  return request({
    url: '/film/directImage/list',
    method: 'get',
    params: query
  })
}

// 查询直充图片地址详细
export function getDirectImage(id) {
  return request({
    url: '/film/directImage/' + id,
    method: 'get'
  })
}

// 新增直充图片地址
export function addDirectImage(data) {
  return request({
    url: '/film/directImage',
    method: 'post',
    data: data
  })
}

// 修改直充图片地址
export function updateDirectImage(data) {
  return request({
    url: '/film/directImage',
    method: 'put',
    data: data
  })
}

// 删除直充图片地址
export function delDirectImage(id) {
  return request({
    url: '/film/directImage/' + id,
    method: 'delete'
  })
}
